class Article < ActiveRecord::Base
  has_many :comments

  validates :name, :presence => true

  scope :recent, Article.all( :limit => 5 )
  scope :unpublished, Article.where(:published => false)
end
